package com.wuseguang.springcloud.service;


import com.wuseguang.springcloud.client.ServiceList;
import com.wuseguang.springcloud.service.impl.QuartzClientServiceFallbackFactory;
import com.wuseguang.springcloud.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = ServiceList.MICROSERVICECLOUD_QUARTZ, path = "/quartz", fallbackFactory = QuartzClientServiceFallbackFactory.class)
public interface QuartzClientService {

    @RequestMapping("/findTeacherSubscription")
    Result findTeacherSubscription();

    @RequestMapping("/scheduleSubscription")
    Result scheduleSubscription(@RequestParam(value = "state") Integer state);

    @RequestMapping("/openTask")
    Result openTask();

    @RequestMapping("/saveAttend")
    Result saveAttend();
}
